package com.attendance.www.hr.dao.mapper;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.attendance.www.hr.beans.ReportAttendanceBean;
import com.attendance.www.hr.beans.ReportAttendanceParam;

public interface AttendanceReportExtMapper {
    /**
	 * 翻页查询考勤报表信息
	 */
	List<ReportAttendanceBean> getAttendanceReportList(@Param("reportAttendanceParam")ReportAttendanceParam reportAttendanceParam);
    
   	/**
   	 * 计算总条数
   	 */
   	int countByParam(@Param("reportAttendanceParam")ReportAttendanceParam reportAttendanceParam);
   	
   	List<ReportAttendanceBean> getIsHasTheDate(@Param("theDate")Date theDate);
   	
    int generateAttendanceReport(@Param("startDate") Date startDate,@Param("endDate") Date endDate,@Param("employeeId") Integer employeeId);
    
    //每5分钟查询任务表，更新报表数据
    void generateAttendanceApprovalReport();
    
    //更新离职日期，设置为null的update
    void updateSeparatedDate(@Param("employeeId") Integer employeeId);
    
    //查询某人报表数据的最后一天
    Date getTheDay(@Param("employeeId") Integer employeeId);
    
}